package com.test.spring.struts.actions;

import com.test.spring.struts.services.PersonService;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author liuziyang
 * @create 2018-10-07 15:26
 */
public class PersonAction {
    private static final long serialVersionUID = 8033761196636775323L;
    private PersonService personService;

    public void setPersonService(PersonService personService) {
        this.personService = personService;
    }

    public String execute() throws Exception {
        System.out.println("execute...");
        personService.save();
        return "success";
    }
}
